package com.attendance.security.info.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 登录信息
 *
 * @author 今朝
 * @date 2021/03/18
 */
@Component
@TableName("t_login_info")
@Data
public class LoginInfo {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private String ip;
    private String address;
    private String browser;
    private String os;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime;
}
